"use strict";
//迪米特法则
var Saleman = /** @class */ (function () {
    function Saleman(name) {
        this.name = name;
    }
    ;
    Saleman.prototype.sale = function () {
        console.log(this.name + '销售中。。。');
    };
    return Saleman;
}());
;
var SaleManager = /** @class */ (function () {
    function SaleManager() {
        this.salemans = [new Saleman('张三'), new Saleman('李四')];
    }
    ;
    SaleManager.prototype.sale = function () {
        this.salemans.forEach(function (item) {
            item.sale();
        });
    };
    return SaleManager;
}());
;
var CEO = /** @class */ (function () {
    function CEO() {
        this.saleMangers = new SaleManager();
    }
    CEO.prototype.sale = function () {
        this.saleMangers.sale();
    };
    return CEO;
}());
;
var ceo = new CEO();
ceo.sale();
